<?xml version="1.0"?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>0ad</Name>
        <Homepage>https://play0ad.com/</Homepage>
        <Packager>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2</License>
        <License>CCPL</License>
        <License>MIT</License>
        <Icon>0ad</Icon>
        <IsA>app:gui</IsA>
        <PartOf>game.strategy</PartOf>
        <Summary>Cross-platform, 3D and historically-based real-time strategy game</Summary>
        <Description>Cross-platform, 3D and historically-based real-time strategy game.As the military leader of an ancient civilisation,
        you must gather the resources you need to raise a military force capable of dominating your enemies.</Description>        
        <Archive sha1sum="130444c15e29c7fa1333b8719ae7c7da36741a26" type="tarxz">http://releases.wildfiregames.com/0ad-0.0.25b-alpha-unix-build.tar.xz</Archive>
        <Archive sha1sum="c56cc4b51f13323521318204aa69dd1cb5dd010f" type="tarxz">http://releases.wildfiregames.com/0ad-0.0.25b-alpha-unix-data.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zip</Dependency>
            <Dependency>nasm</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>binutils</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>nspr-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>enet-devel</Dependency>
            <Dependency>wxGTK-devel</Dependency>
            <Dependency>libSM-devel</Dependency>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>gloox-devel</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>openal-devel</Dependency>
            <Dependency>wxBase-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libsdl2-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>wxGTK2.8-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>miniupnpc-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>subversion-devel</Dependency>
            <Dependency>libsodium-devel</Dependency>
            <Dependency>python-setuptools</Dependency>
            <Dependency>spidermonkey-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
        <Patches>
             <Patch level="1">fix_permission.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>0ad</Name>
        <RuntimeDependencies>
            <Dependency>tiff</Dependency>
            <Dependency>enet</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>nspr</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>icu4c</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>wxGTK</Dependency>
            <Dependency>gloox</Dependency>
            <Dependency>boost</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>openal</Dependency>
            <Dependency>wxBase</Dependency>
            <Dependency>libsdl2</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libsodium</Dependency>
            <Dependency>miniupnpc</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>libXcursor</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/lib</Path>
            <Path fileType="data">/usr/share/0ad</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="doc">/usr/share/doc/0ad</Path>
            <Path fileType="doc">/usr/share/man/man6</Path>
        </Files>
        <AdditionalFiles>
             <AdditionalFile target="/usr/bin/0ad" owner="root" permission="0755">0ad</AdditionalFile>
             <AdditionalFile target="/usr/share/applications/0ad.deskop" owner="root" permission="0644">0ad.desktop</AdditionalFile>
             <AdditionalFile target="//usr/share/man/man6/0ad.6" owner="root" permission="0644">0ad.6</AdditionalFile>
             <AdditionalFile target="/usr/share/pixmaps/0ad.png" owner="root" permission="0644">0ad.png</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="2">
            <Date>2022-07-28</Date>
            <Version>0.0.25b</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2019-10-30</Date>
            <Version>0.0.23b</Version>
            <Comment>First release</Comment>
            <Email>suvari@pisilinux.org</Email>
            <Name>Kamil Atlı</Name>
        </Update>
    </History>
</PISI>
